<template>
  <div class="mh_detail">
    <h4>{{dataContent.title}}</h4>
    <div class="Compile_body_format" v-html="dataContent.news_data.content">
      {{dataContent.news_data.content}}
    </div>
  </div>
</template>
<script>
export default {
  name: 'mh_detail',
  components: {},
  data () {
    return {
      dataContent: {
        news_data: {
          content: ''
        }
      }
    }
  },
  props: {},
  watch: {},
  methods: {
    /* wf_Huang 2019/9/4 0004 获取详情数据 */
    getData () {
      this.$http({
        url: `${window.SITE_CONFIG['mhURL']}/index.php?s=api&c=news&m=get_news_info&id=${this.$route.query.id}`,
        method: 'get',
        withCredentials: false
      }).then(({ data: res }) => {
        if (res.status !== 1) {
          this.$toast('查询失败~')
          return false
        }
        this.dataContent = res.data
      }).catch(() => {})
    }
  },
  computed: {},
  created () {
  },
  mounted () {
    this.getData()
  },
  destroyed () {
  }
}
</script>
<style lang="scss" scoped>
  .mh_detail {
    padding: 30px;
    h4{
      font-size: 44px;
      color: #222222;
      line-height: 60px;
      margin: 0;
      padding: 30px 0;
    }
  }
</style>
